﻿using System.Windows.Automation;

namespace QuickUIT.Controls
{
    /// <summary>
    /// Represents a titlebar control. 
    /// </summary>
    public class UITitleBar : UIBaseControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UITitleBar"/> class. 
        /// </summary>
        public UITitleBar() : base(ControlType.TitleBar)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UITitleBar"/> class.
        /// </summary>
        /// <param name="parent">The parent of this control.</param>
        public UITitleBar(UIBaseControl parent) : base(parent, ControlType.TitleBar)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UITitleBar"/> class.
        /// </summary>
        /// <param name="locator">The locator used to find the specific control.</param>
        public UITitleBar(string locator) : base(null, ControlType.TitleBar, locator) 
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UITitleBar"/> class.
        /// </summary>
        /// <param name="parent">The parent of this control.</param>
        /// <param name="locator">The locator used to find the specific control.</param>
        public UITitleBar(UIBaseControl parent, string locator) : base(parent, ControlType.TitleBar, locator)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UITitleBar"/> class.
        /// </summary>
        /// <param name="control">The underlying <see cref="AutomationElement"/> of the control.</param>
        public UITitleBar(AutomationElement control) : base(control, ControlType.TitleBar)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UITitleBar"/> class.
        /// </summary>
        /// <param name="parent">The parent of the control</param>
        /// <param name="control">The underlying <see cref="AutomationElement"/> of the control.</param>
        public UITitleBar(UIBaseControl parent, AutomationElement control) : base(parent, control, ControlType.TitleBar)
        {
        }
    }
}
